{extend name="common/adminBase" /}
{block name="body"}
<body class="index">
<!-- 顶部开始 -->
<div class="container">
    <div class="logo">
        <a href="./index.html"  style="width:270px !important;">{$siteconfig.title}</a></div>
    <div class="left_open">
        <a><i title="展开左侧栏" class="iconfont">&#xe699;</i></a>
    </div>

    <ul class="layui-nav right" lay-filter="">
        <li class="layui-nav-item">
            <a href="javascript:;">
                <img src="" onerror="this.src='/static/xadmin/images/mo.png' "width="35">{$admin.name}
            </a>
            <dl class="layui-nav-child">
                <dd>
                    <a href="/index/Index/signOut">注销</a>
                    <a href="/index/Index/changepassword">修改密码</a>
                </dd>
            </dl>
        </li>

    </ul>
</div>
<!-- 顶部结束 -->
<!-- 中部开始 -->
<!-- 左侧菜单开始 -->
<div class="left-nav">
    <div id="side-nav">
        <ul id="nav">
            {if $admin.lv!=4}
            {volist name="menu" id="v"}
            <li>
                {if ($admin.lv==2||$admin.lv==3)&&$v.title=='权限管理'}
                    <a href="javascript:;">
                        <i class="iconfont left-nav-li" lay-tips="学校管理员管理"><?php echo $v['icon']?></i>
                        <cite>学校管理员管理</cite>
                        <i class="iconfont nav_right">&#xe697;</i>
                    </a>
                {else/}
                <a href="javascript:;">
                    <i class="iconfont left-nav-li" lay-tips="{$v.title}"><?php echo $v['icon']?></i>
                    <cite>{$v.title}</cite>
                    <i class="iconfont nav_right">&#xe697;</i>
                </a>
                {/if}
                <ul class="sub-menu" >
                    {volist name="v.item" id="g"}
                    <li>
      
                        <a onclick="goto(this)" url="{$g.router}">
                            <i class="iconfont">&#xe6a7;</i>
                            <cite>{$g.title}</cite>
                        </a>
                    
                        <!--                                <a onclick="goto1('{$g.title}','{$g.router}',true)">-->
                        <!--                                    <i class="iconfont">&#xe6a7;</i>-->
                        <!--                                    <cite>{$g.title}</cite>-->
                        <!--                                </a>-->

                    </li>
                    {/volist}
                </ul>
            </li>
            {/volist}
            {else/}
                {volist name="menu" id="g"}
                    <li>
                        <a onclick="goto(this)" url="{$g.router}">
                            <i class="iconfont">&#xe6a7;</i>
                            <cite>{$g.title}</cite>
                        </a>
                        <!--                                <a onclick="goto1('{$g.title}','{$g.router}',true)">-->
                        <!--                                    <i class="iconfont">&#xe6a7;</i>-->
                        <!--                                    <cite>{$g.title}</cite>-->
                        <!--                                </a>-->

                    </li>
                {/volist}
            {/if}
        </ul>
    </div>
</div>
<!-- <div class="x-slide_left"></div> -->
<!-- 左侧菜单结束 -->
<!-- 右侧主体开始 -->
<div class="page-content">
    <div class="layui-tab tab" lay-filter="xbs_tab" lay-allowclose="false">
        <ul class="layui-tab-title">
            <li class="home">
                <i class="layui-icon">&#xe68e;</i>我的桌面</li></ul>
        <div class="layui-unselect layui-form-select layui-form-selected" id="tab_right">
            <dl>
                <dd data-type="this">关闭当前</dd>
                <dd data-type="other">关闭其它</dd>
                <dd data-type="all">关闭全部</dd></dl>
        </div>
        <div class="layui-tab-content">
            <div class="layui-tab-item layui-show">
              
                {if $admin.rid==7&&$admin.if_rz==0}
                    <iframe src='/index/index/renzheng' frameborder="0" scrolling="yes" class="x-iframe"></iframe>
                {else/}
                    {if $if_first==0 && ($admin.lv==2||$admin.lv==0)}
                        {if $admin.lv==2}
                            <iframe src='/index/wei/index' frameborder="0" scrolling="yes" class="x-iframe"></iframe>
                        {/if}
    
                    {else/}
                        {if $admin.lv==4}
                             <iframe src='/index/user/shenhe' frameborder="0" scrolling="yes" class="x-iframe"></iframe>
                        {elseif $admin.rid==8}
                            {if $if_rz}
                                <iframe src='/index/school/shenlist' frameborder="0" scrolling="yes" class="x-iframe"></iframe>
                            {else/}
                                <iframe src='/index/index/schoolrenzheng' frameborder="0" scrolling="yes" class="x-iframe"></iframe>
                            {/if}
                        {elseif $admin.lv==2}
                            <iframe src='/index/wei/ketishenqing' frameborder="0" scrolling="yes" class="x-iframe"></iframe>
                        {else/}
                            <iframe src='/index/index/welcome' frameborder="0" scrolling="yes" class="x-iframe"></iframe>
                        {/if}
                    {/if}
               {/if}
            </div>
        </div>
        <div id="tab_show"></div>
    </div>
</div>
<div class="page-content-bg"></div>
<style id="theme_style"></style>
<!-- 右侧主体结束 -->
<!-- 中部结束 -->
<script>//百度统计可去掉
function goto(obj) {
    $(".x-iframe").attr("src",$(obj).attr('url'));
}
function goto1(title,url,is_refresh) {
    var id = md5(url);//md5每个url

    //重复点击
    for (var i = 0; i <$('.x-iframe').length; i++) {
        if($('.x-iframe').eq(i).attr('tab-id')==id){
            element.tabChange('xbs_tab', id);
            if(is_refresh)
                $('.x-iframe').eq(i).attr("src",$('.x-iframe').eq(i).attr('src'));
            return;
        }
    };
}
</script>
</body>

{/block}